<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>3</title>
    <style>
        body{
            font: 12px "simhei", Arial, Helvetica, sans-serif;
            color: #666;
        }
        body>div{
            width: 198px; height: 233px;
            background: #E8E8E8;
            text-align: center;
        }
        a{
            width: 100px; height: 24px;
            background-color: #0AA1ED;
            /*行内元素和行内块元素会受上级元素文本居中的影响，元素自身会居中
            块级元素则不会，需要让块级元素剧中的话必须使用margin: 0 auto;*/
            display: inline-block;/*修改为行内块元素*/
            /*display: block;!*修改为块级元素*!*/
            /*margin: 0 auto;!*让块级元素居中*!*/
            line-height: 24px;
            color: white;
            border-radius: 3px;
            text-decoration: none;
        }
        .title-p{
            margin: 0 0 6px 0;
            color: black;
        }
        .price-p{
            margin: 6px 0;
            color: #0AA1ED;
            font-weight: bold;
        }
    </style>
</head>
<body>
<div>
    <div>
        <img src="../imgs/study_computer_img3.png" alt="">
        <p class="title-p">戴尔(DELL)XPS13-9360-R1609 13.3英寸微边框笔记本电脑</p>
        <p class="price-p">￥4600.00</p>
        <a href="">查看详情</a>
    </div>
</div>
</body>
</html>